package com.zhuyuan.repository;


import com.zhuyuan.Entity.Food;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


public interface FoodRepository extends JpaRepository<Food,Integer> {

    @Modifying
    @Query("delete from Food f where f.food = :food")
    int deleteFood(String food);
}

